let curUrl = 'https://search.jd.com:80/Search?keyword=帽子&enc=utf-8&wq=帽子&pvid=8ad684ccd0d14abf95e684fe5094a342';

let urlObj = new URL(curUrl);

console.log(urlObj,urlObj.hostname,urlObj.port);
console.log(paraMap,paraMap.keyword);

let paraMap = urlObj.searchParams;  //searchParams对应的值为Map数据结构
console.log(paraMap.get('keyword'));


